<!DOCTYPE html>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html lang="en">
    <head>
        <meta charset="UTF-8">
        <meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=0">
        <link href="images/favicon.ico" mce_href="${pageContext.request.contextPath}/images/favicon.ico" rel="shortcut icon" type="image/x-icon" />
        <title>注册成功</title>
        <link rel="stylesheet" href="${pageContext.request.contextPath}/css/weui.css"/>
		<link rel="stylesheet" href="${pageContext.request.contextPath}/css/wechat.css"/>
    </head>
    <body ontouchstart>
        <div class="container js_container">

        </div>
        <div class="page skin-blue">
            <div class="hd no-padding-b">
                <h1 class="page_title">
                    <img src="${pageContext.request.contextPath}/images/logo.png">
                </h1>
                <p class="page_desc text-white">微信会员</p>
            </div>
            <div class="code-container">
                <div class="bd">
                    <div class="wechat-info">
                        <div class="wechat-avatar">
                            <img src="${userInfo.headimgurl}" />
                        </div>
                        
                        <div class="wechat-name">
                            <p>${userInfo.nickname}${member.phoneNum }</p>
                        </div>
                    </div>
                    <div class="wechat-info">
                    	<div id="bcTarget" class="bar-code"></div>
                    	<div class="wechat-name">
                    		<input type="hidden" id="phoneNum" value="${member.phoneNum }">
                            <p >${member.phoneNum }</p>
                        </div>
                    </div>
<%--                     <img class="bar-code" src="${pageContext.request.contextPath}/images/bar.jpg" /> --%>
                </div>
                <div class="bd text-center">
                    <div class="share-info">
                        <div class="share-icon">
                            <img src="${pageContext.request.contextPath}/images/wechat.png" />
                        </div>
                        <div class="share-icon">
                            <img src="${pageContext.request.contextPath}/images/friend-circle.png" />
                        </div>
                        <a href="#">分享给更多的朋友吧！</a>
                    </div>
                </div>
            </div>
        </div>
        <script src="http://wx.wiz-tech.com.cn/js/jquery-1.7.2.js" type="text/javascript"> </script>
        <script src="${pageContext.request.contextPath}/js/jquery-barcode.js"></script>
        <script src="${pageContext.request.contextPath}/js/zepto.min.js"></script>
        <script src="${pageContext.request.contextPath}/js/example.js"></script>
    </body>
    <script type="text/javascript">
    	$(function(){
//     		$("#bcTarget").barcode("18881850395", "int25",{barWidth:3, barHeight:70});

//     codabar
//     code11 (code 11)
//     code39 (code 39)
//     code93 (code 93)
//     code128 (code 128)
//     ean8 (ean 8)
//     ean13 (ean 13)
//     std25 (standard 2 of 5 - industrial 2 of 5)
//     int25 (interleaved 2 of 5)
//     msi
//     datamatrix (ASCII + extended)


//     		$("#bcTarget").empty().barcode("18881850395", "code11",{barWidth:2, barHeight:30,showHRI:false});
			$("#bcTarget").barcode($("#phoneNum").val(), "code93",{barWidth:2, barHeight:70});
// 			$("#bcTarget").barcode({code: "18881850395", crc:false}, "int24",{barWidth:2, barHeight:70});
    	});
    </script>
</html>